﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace 刘颜红销售项目管理
{
    public partial class dlgSelectePeople : Form
    {
        public dlgSelectePeople()
        {
            InitializeComponent();
            this.DialogResult = DialogResult.Cancel;
        }

        private void dlgSelectePeople_Load(object sender, EventArgs e)
        {
            
        }

        public bool ShowCheckboxes
        {
            get
            {
                return tvwPeople.CheckBoxes;
            }
            set
            {
                tvwPeople.CheckBoxes = value;
            }
        }
        public void RefreshView()
        {
            tvwPeople.ShowActionNode = false;
            tvwPeople.RefreshView();
        }
        public object SelectedValue
        {
            get
            {
                return tvwPeople.SelectedValue;
            }
            set
            {
                tvwPeople.SelectedValue = value;
            }
        }

        public System.Collections.IList CheckedValues
        {
            get
            {
                return tvwPeople.Controler.CheckedValues;
            }
            set
            {
                tvwPeople.Controler.CheckedValues = value;
            }
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}